<?php
/**
 * Framework_Component_OpenID
 *
 * @author      Ian Szewczyk <roamzero@gmail.com>
 * @copyright   (c) 2007 Ian Szewczyk. All rights reserved.
 * @license http://www.opensource.org/licenses/bsd-license.php
 * @package Framework
 * @subpackage Component
 * @filesource
 */

/**
 * Framework_Component_OpenID
 *
 *
 * @author Ian Szewczyk <roamzero@gmail.com>
 * @package Framework
 * @subpackage Component
 */

class Framework_Component_OpenID extends Framework_Component_Common
{
	/**
	 * __construct
	 *
	 * @access 		public
	 * @param 		array		$params		Parameters passed from template
	 * @return 		void
	 */
	public function __construct($params = null)
	{
		parent::__construct($params);
		$this->tplFile = 'OpenID.tpl';

	}

	/**
	 * run
	 *
	 * @access 		public
	 * 
	 * @return 		void
	 */
	public function run()
	{
		$this->forms['form'] = Framework_Quickform::factory('openIDLogin', 'post', Framework::$request->getBaseHTTPPath().'/-/User/OpenIDConsumer', null, null, true);
		$this->forms['form']->addElement('text','identity','Identity: ', 'size="25" title="Remote Login - Enter your profile url or type in username@yourdomain.com to login remotely" class="textInput" id="identity"');
		$this->forms['form']->addElement('hidden','from', Framework::$request->getHTTPPath());
	}

	/**
	 * __destruct
	 *
	 * @access 		public
	 * 
	 * @return 		void
	 */
	public function __destruct()
	{
		parent::__destruct();
	}
}

?>